﻿using System;

namespace Petshop.Backend.Exceptions
{
    [Serializable]
    public class BusinessException : ApplicationException
    {
        private readonly string _key;

        public BusinessException(string key, string message)
            : base(message)
        {
            _key = key;
        }

        public string Key
        {
            get { return _key; }
        }
    }
}
